<% content_for :content do %>
<div class="banner">
	<%= image_tag @article.top_cover.url(:large), style: "width:98%" %>
</div>
<div id="main_body">
	<div style="width:60%;text-align: center;margin-left: auto;
    margin-right: auto;">
    <p><h3><%= @article.title %></h3><br/></p>
		<%= @article.content.html_safe %>
	</div>
  <section class="panel">
    <div class="panel-body">
        <ul class="grid cs-style-3">
            <% @uploads.each do |upload| %>
              <li>
                  <figure>
                      <%= image_tag upload.uploaded_file.url(:small) %>
                      <figcaption>
                          <a class="fancybox" rel="group" href="<%= upload.uploaded_file.url %>">Take a look</a>
                      </figcaption>
                  </figure>
              </li>
            <% end %>
        </ul>

    </div>
  </section>
</div>

<%= link_to "下载", @article.pdf_url if @article.pdf_url %>

<div class="re_m">
  <% if @article.products.present? %>
  <div class="related"><span>相关产品：</span>
    <ul>
      <% @article.products.each do |product| %>
        <li><%= link_to product.title, product_path(product) %></li>
      <% end %>
    </ul>
  </div>
  <% end %>
</div>

  <%= render "share/order_form", {order: @order, product: @article} %>

<% end %>

 